<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="cn.news.dao.*,cn.news.entity.*,util.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'news.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <h1>
    您正在查看的新闻是：<%
  String num= request.getParameter("id");
      out.println(num);
      int no=Integer.parseInt(num);
      
    %>
    </h1>
     <div class="side_list">
      <ul>      
         <%
          NewsDao inland=new NewsDao();
           List<News>	list1=inland.findcid(no);
           for(int i=0;i<list1.size();i++)
           {
        	   News n=list1.get(i);
          %>   
      	         
	      <li>标题:<%=n.getNtitle() %></li>
	      <li>发布时间：<%=n.getNcreateDate()%></li>
	      <li>内容：<%=n.getNcontent()%></li>
	      <%
	      }
           %>     	
      	
      </ul>
    </div>
  </body>
</html>
